package com.youku.plugins.shareV4
{
   import com.youku.interfaces.IPlugin;
   import com.youku.plugins.shareV4.view.ShareMediator;
   import flash.display.MovieClip;
   import com.youku.interfaces.IPlayerProxy;
   import flash.net.registerClassAlias;
   
   public class ShareFacade extends Object implements IPlugin
   {
      
      public function ShareFacade() {
         super();
      }
      
      private static var _instance:ShareFacade;
      
      public static function getInstance() : ShareFacade {
         if(_instance == null)
         {
            _instance = new ShareFacade();
         }
         return _instance as ShareFacade;
      }
      
      private var _mediator:ShareMediator;
      
      public function init(param1:MovieClip, param2:IPlayerProxy) : void {
         ShareFont.setShareFont();
         this.initAsset();
         this._mediator = new ShareMediator(param1,param2);
         this._mediator.init();
      }
      
      private function initAsset() : void {
         registerClassAlias("sharePanel_icon_qq",sharePanel_icon_qq);
         registerClassAlias("sharePanel_icon_Qzone",sharePanel_icon_Qzone);
         registerClassAlias("sharePanel_icon_weibo",sharePanel_icon_weibo);
      }
   }
}
